<template>
  <div>
    <swiper :options="swiperOption">
      <swiper-slide v-for="item of swiperList" :key="item.id">
        <img class="swiper-img" :src="item.imgUrl" alt="">
      </swiper-slide>
      <div class="swiper-pagination"  slot="pagination"></div>
    </swiper>
  </div>
</template>

<script>
export default {

  data () {
    return {
      swiperOption:{
        pagination: '.swiper-pagination',
        loop:true
      },
      swiperList:[{
        id:'001',
        imgUrl:'http://img1.qunarzz.com/piao/fusion/1812/eb/806541e769362f02.jpg_750x200_23b71064.jpg'
      },
      {
        id:'002',
        imgUrl:'http://img1.qunarzz.com/piao/fusion/1812/d6/daa880b254940402.jpg_750x200_b114308a.jpg'
      }]
    }
  },

  methods: {},

  created () {
  }
}
</script>

<style lang='less' scoped>
  .swiper-img {
    width: 100%;
  }
</style>
